
public class BoardPiece {

    // test for final rows and cols variables
    private int rows;
    private int cols;

    private String piece;

    public String getPiece(){ // needed to return puzzle piece test
        return piece;
    }

    public void setPiece(String newPiece){
        piece = newPiece;
    }

    // testing a constructor
    public BoardPiece(int row, int col, String pieceTest){
        rows = row;
        cols = col;
        piece = pieceTest;
    }

    // final piece position test
    public boolean finalPieceCheck(int r, int c){
        return r == rows && c == cols;
    }
    
}
